package tmall.domain.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import tmall.common.mapper.BaseMapper;
import tmall.domain.entity.User;

import java.util.Map;

@Mapper
@Component
public interface UserMapper extends BaseMapper<User> {

    /**
     * 检测字段是否重复
     * @param params
     */
    int checkDuplicate(Map<String, Object> params);
}